package privilege;

import entity.Luggage;

import java.util.List;

/**
 * @author lishunlin110
 * @version 1.0
 * @description: 装饰者
 * @date 2021/9/16 15:58
 */
public abstract class Garnish extends Privilege{
    Privilege privilege;

    public Garnish() {
    }

    public Garnish(int freeWeight, String dec, List<Luggage> luggageList, Privilege privilege) {
        super(freeWeight, dec, luggageList);
        this.privilege = privilege;
    }

    public Privilege getPrivilege() {
        return privilege;
    }

    public void setPrivilege(Privilege privilege) {
        this.privilege = privilege;
    }
}
